import http from "../index"

export function newUserList(param={}){
    return http({
        url: '/newUser/list',
        method: 'get',
        data: param,
        params: param
    })
}


//查询出所有分类数据
export function newUserSave(param={}){
    return http({
        url: '/newUser/save',
        method: 'post',
        data: param
    })
}

//查询出所有分类数据
export function newUserLogin(param={}){
    return http({
        url: '/newUser/login',
        method: 'post',
        data: param
    })
}


//查询出所有分类数据
export function newUserDetele(param={}){
    return http({
        url: '/newUser/delete',
        method: 'post',
        data: param
    })
}

//查询出所有分类数据
export function newUserUpdate(param={}){
    return http({
        url: '/newUser/update',
        method: 'post',
        data: param
    })
}


//查询出所有分类数据
export function newUserGetById(param={}){
    return http({
        url: '/newUser/getbyid/'+param,
        method: 'get',
        data: param
    })
}

//查询出所有分类数据
export function newUserGetByIdCard(param={}){
    return http({
        url: '/newUser/getbyidCard/'+param,
        method: 'get',
        data: param
    })
}


//查询出所有分类数据
export function newUserGetByNumber(param={}){
    return http({
        url: '/newUser/getbynumber/'+param,
        method: 'get',
        data: param
    })
}

export function newUserDeleteAll(param={}){
    return http({
        url: '/newUser/deleteall',
        method: 'get',
        data: param
    })
}